package demo;

class Person{
    public String name = "hello";
    public int age = 18;
}
public class Test {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person);//地址
        System.out.println(person.name);//值
        System.out.println(person.age);//值

    }
}
